﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using GoldDigger.Models;

namespace GoldDigger.Editor
{
    public class Item
    {
        public static readonly DependencyProperty Type =
            DependencyProperty.RegisterAttached(
                "Type",
                typeof (ItemType),
                typeof (Image),
                new FrameworkPropertyMetadata(ItemType.None));

        public static ItemType GetType(Image source)
        {
            return (ItemType)source.GetValue(Type);
        }

        public static void SetType(Image source, ItemType value)
        {
            source.SetValue(Type, value);
        }
    }
}
